package com.movie.service.impl;

import com.movie.model.auto.*;
import com.movie.mapper.auto.FilmMapper;
import com.movie.service.IFilmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 电影表 服务实现类
 * </p>
 *
 * @author 达瓦里氏
 * @since 2021-12-16
 */
@Service
public class FilmServiceImpl extends ServiceImpl<FilmMapper, Film> implements IFilmService {

    @Resource
    private FilmMapper filmMapper;

    @Override
    public List<HotFilm> SelectFilmByHot() {
        return filmMapper.SelectFilmByHot();
    }

    @Override
    public List<NewsFilm> SelectFilmByNews() {
        return filmMapper.SelectFilmByNews();
    }

    @Override
    public FilmAccount selectFilmById(int id) {
        return filmMapper.selectFilmById(id);
    }

    @Override
    public List<AllFilm> SelectAllFilm() {
        return filmMapper.SelectAllFilm();
    }

}
